package oop.ex2.types;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * represents a method
 * @author danielshalev
 *
 */
public class Method {
	private String name;
	private ArrayList<String> lines;
	private String returnType;
	private HashMap<String, Variable> arguments;
	
	
	public Method(String name, String returnType, HashMap<String, Variable> arguments, ArrayList<String> lines){
		this.name=name;
		this.lines=lines;
		this.returnType=returnType;
		this.arguments=arguments;
	}
	
	

	



	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}


	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}


	/**
	 * @return the lines
	 */
	public ArrayList<String> getLines() {
		return lines;
	}


	/**
	 * @param lines the lines to set
	 */
	public void setLines(ArrayList<String> lines) {
		this.lines = lines;
	}


	/**
	 * @return the returnType
	 */
	public String getReturnType() {
		return returnType;
	}


	/**
	 * @param returnType the returnType to set
	 */
	public void setReturnType(String returnType) {
		this.returnType = returnType;
	}


	/**
	 * @return the arguments
	 */
	public HashMap<String, Variable> getArguments() {
		return arguments;
	}


	/**
	 * @param arguments the arguments to set
	 */
	public void setArguments(HashMap<String, Variable> arguments) {
		this.arguments = arguments;
	}
	
	
}
